package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: User
 * Description:
 * date: 2020/5/29 0029 10:43:12
 *
 * @author 19036
 * @since JDK 1.8
 * 用户表(user)
 * 字段名	属性	    约束	注释
 * id	    int	        主键	主键
 * name	    varchar(20)	非空	用户名
 * real	    varchar(20)	非空	真实姓名
 * pwd	    varchar(20)	非空	密码
 */
public class User implements Serializable {
    private int id;
    private String name;
    private String real;
    private String pwd;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", real='" + real + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReal() {
        return real;
    }

    public void setReal(String real) {
        this.real = real;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public User(int id, String name, String real, String pwd) {
        this.id = id;
        this.name = name;
        this.real = real;
        this.pwd = pwd;
    }

    public User() {
    }
}
